<template>
  <div class="page-container ver-layout-center">
    params传参示例页面
    <div>{{ params }}</div>
    <button @click="pageBack">返回</button>
  </div>
</template>

<script>
export default {
  name: "params",
  data() {
    return {
      params: {}
    }
  },
  created() {
    console.log("created", this.$route.params)
    this.params = this.$route.params
  },
  methods: {
    pageBack() {
      // this.$router.back()
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>

</style>
